<template>
  <div>
    <div class="wrapper">
      <swiper :options="swiperOption">
        <swiper-slide v-for="item in swiperList" :key="item.id">
          <img class="swiper-img" :src="item.imgUrl" alt="">
        </swiper-slide>
        <div class="swiper-pagination"  slot="pagination"></div>
      </swiper>
    </div>
    <div>text</div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      swiperOption: {
        pagination:'.swiper-pagination',
        loop:true // 循环
      },
      swiperList:[
        {id:0, imgUrl:'http://preview.qiantucdn.com/58picmark/Templet_origin_pic/34/15/41/58PIC8z58PICYp8eBi8RIPz2rMaRk.jpg!w1024_small' },
        {id:1, imgUrl:'http://preview.qiantucdn.com/58picmark/Templet_origin_pic/34/15/44/42b58PICf54yVA9h4f7I9MaRk.jpg!w1024_small' }
      ]
    }
  }
}
</script>

<style lang="stylus" scoped>
.wrapper >>> .swiper-pagination-bullet-active
  background:red !important
.wrapper
  overflow:hidden
  width:100%
  height:0
  padding-bottom:32%
  .swiper-img
    width:100%
</style>
